//
//  PXHBaseViewController.m
//  Courses
//
//  Created by YiXuePxh on 15/5/19.
//  Copyright (c) 2015年 boyibang. All rights reserved.
//

#import "PXHBaseViewController.h"
#import "WTFColors.h"

@interface PXHBaseViewController ()

@end

@implementation PXHBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //设定navi背景颜色
    self.navigationController.navigationBar.translucent = false;
    self.navigationController.navigationBar.barTintColor = [WTFColors defaultBarColor];
    //设定视图背景颜色
    self.view.backgroundColor = [UIColor whiteColor];
    //设定navi字体颜色
    UIColor* cc = [UIColor whiteColor];
    NSDictionary* dict = [NSDictionary dictionaryWithObject:cc forKey:UITextAttributeTextColor];
    self.navigationController.navigationBar.titleTextAttributes = dict;
    //设置navi风格和tint颜色
    self.navigationController.navigationBar.barStyle = UIBarStyleDefault;
    [self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];
    
    NSLog(@"Navigating:%@",[self class]);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(BOOL)shouldAutorotate{
    return NO;//禁止所有子视图旋转屏幕  需要旋转重写 该方法
}
-(void)showMBHUDByMssage:(NSString* )message Time:(int)time{
    ShowTextPromptDelayHide(message, time, self.view);
}

@end
